package com.atguigu.srb.core.pojo.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @author zwj
 * @create 2021-10-13 10:53
 */
@ApiModel
@Data
public class RegisterVO {


//    @NotNull(message = "用户类型不能为空")
    @ApiModelProperty("用户类型")
    private Integer userType;

//    @NotBlank(message = "手机号码不能为空")
//    @Pattern(regexp = "^1[3|4|5|7|8][0-9]{9}$",message = "手机号码不正确")
    @ApiModelProperty("手机号码")
    private String mobile;

//    @NotBlank(message = "验证码不能为空")
    @ApiModelProperty("验证码")
    private String code;

//    @NotBlank(message = "密码不能为空")
    @ApiModelProperty("密码")
    private String password;

}
